import 'package:flutter/material.dart';
/**
 * Create by laoge
 * on 2021/4/12 0012
 */

class MyWidget {

  static AppBar buildAppBar(String title) {
    return AppBar(
      shadowColor: Colors.grey.shade300,
      backgroundColor: Colors.grey.shade300,
      elevation: 0,
      // Here we take the value from the MyHomePage object that was created by
      // the App.build method, and use it to set our appbar title.
      centerTitle: true,
      title: Center(
        child: Text(
          title,
          style: TextStyle(
              color: Colors.black, fontWeight: FontWeight.bold, fontSize: 18),
        ),
      ),
      actions: [
        Image.asset(
          "assets/images/search.png",
          width: 25,
        ),
        SizedBox(
          width: 10,
        ),
        GestureDetector(
          onTap: (){

          },
          child: Image.asset(
            "assets/images/more.png",
            width: 25,
          ),
        ),
        SizedBox(
          width: 15,
        ),
      ],
    );
  }
}
